package com.project.bean;

import java.time.LocalDate;
/**项目进度实体类*/
public class ProgressBean {
    /**项目进度id*/
    private int progId;
    /**开始时间*/
    private LocalDate startDate = LocalDate.now();
    /**结束时间*/
    private String endDate = "未完成";
    /**项目对象*/
    private ProjectBean projectBean;
    /**员工对象*/
    private StaffBean staffBean;

    public ProgressBean() {
    }

    public ProgressBean(String endDate,
                        int projId, int staffId) {
        this.endDate = endDate;
        this.projectBean = new ProjectBean();
        this.projectBean.setProjId(projId);

        this.staffBean = new StaffBean();
        this.staffBean.setStaffId(staffId);
    }

    public LocalDate getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDate startDate) {
        this.startDate = startDate;
    }

    public ProjectBean getProjectBean() {
        return projectBean;
    }

    public void setProjectBean(ProjectBean projectBean) {
        this.projectBean = projectBean;
    }

    public StaffBean getStaffBean() {
        return staffBean;
    }

    public void setStaffBean(StaffBean staffBean) {
        this.staffBean = staffBean;
    }

    public int getProgId() {
        return progId;
    }

    public void setProgId(int progId) {
        this.progId = progId;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    @Override
    public String toString() {
        return "ProgressBean{" +
                "progId=" + progId +
                ", startDate=" + startDate +
                ", endDate='" + endDate + '\'' +
                ", projectBean=" + projectBean +
                ", staffBean=" + staffBean +
                "}\n";
    }
}
